import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        singer: {},
        mvlist: {}
    },
    getters: {},
    mutations: {
        saveSinger(state, singer) {
            state.singer = singer
        },
        saveMv(state, mvlist) {
            state.mvlist = mvlist
        }
    },
    actions: {
        saveSinger(context, singer) {

            context.commit("saveSinger", singer);
        },
        saveMv(context, mvlist) {

            context.commit("saveMv", mvlist);
        }
    },
    modules: {}
})